<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>   
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px
}
-->
</style>
<center>
<table class="tableline" id="Table1" cellspacing="1" cellpadding="0" width="100%" border="0">
    <tr>
     <td colspan="8" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">小区管理列表页面
     &nbsp;&nbsp;&nbsp;&nbsp; <a href="subDistrict.do?method=add">增加小区</a>
     </td>
     </tr>
    <tr align="center">
      <td width="10%" height="40" bgcolor="#ffffff">小区编号</td>
      <td width="20%" bgcolor="#ffffff">小区名称</td>
      <td width="20%" bgcolor="#ffffff">小区地址</td>
      <td width="10%" bgcolor="#ffffff">接管年份</td>
      <td width="20%" bgcolor="#ffffff">所属物业服务处</td>
      <td width="10%" bgcolor="#ffffff">房产、业主表</td>
      <td colspan="2" bgcolor="#ffffff">操作</td>
    </tr>
    <c:if test="${!empty subDistrictList}">
		<c:forEach items="${subDistrictList}" var="subDistrict">
        <tr align="center">
          <td bgcolor="#ffffff">${subDistrict.subDistrictId }</td>
          <td bgcolor="#ffffff">${subDistrict.name }</td>
          <td bgcolor="#ffffff">${subDistrict.address }</td>
          <td bgcolor="#ffffff">${subDistrict.takeTime}</td>
          <td bgcolor="#ffffff">${subDistrict.district.name}</td>
          <td bgcolor="#ffffff"><a href="subDistrict.do?method=writeDBToXLS&id=${subDistrict.id }">下载</a></td>
          <td bgcolor="#ffffff"><a href="subDistrict.do?method=update&id=${subDistrict.id }">修改</a></td>
          <td bgcolor="#ffffff"><a href="subDistrict.do?method=delete&id=${subDistrict.id }">删除</a></td>
        </tr>
      </c:forEach>
    </c:if>
  </table>
</center>
